package com.lwy.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * 评论表
 */
@Data
@TableName("book_comment")
public class BookComment {
    @TableId
    private Integer id;
    //小说简介
    private String content;
    //创建时间
    private String create_time;
    //用户uid
    private Integer uid;
    //状态
    private Integer status;
    //点赞
    private Integer up;
    //小说id
    private Integer nove_id;
    //章节id
    private Integer chapter_id;
    //用户id
    private Integer user_id;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    private List<BookComment> list;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    private BookUser bookUser;


}